 "use strict";
//暂时没有用到
//enumerate:'pc','mobile'
var deviceName = adapterDevice();

//dynamic import javascript
var switchFn = {
  pc:function(){
    document.write('<script src="js/app/build/app.all.js"></script>');
//    document.write('<script src="js/app/build/app.all.min.js"></script>');
  },
  mobile:function(){
    document.write('<script src="js/app/build/mobile-app.all.min.js"></script>');
//    document.write('<script src="js/app/build/mobile-app.all.min.js"></script>');
  }
};
switchFn[deviceName]();


function adapterDevice(){
  if ((navigator.userAgent.match(/(Android)/i))) { 
    return 'mobile';
  }else{
    return 'pc';
  }
}

